import request from '@/utils/request'

// 查询排期优惠卡信息列表
export function listSchedulePromoCardInfo(query) {
  return request({
    url: '/cinema/schedulePromoCardInfo/list',
    method: 'get',
    params: query
  })
}

// 查询排期优惠卡信息详细
export function getSchedulePromoCardInfo(id) {
  return request({
    url: '/cinema/schedulePromoCardInfo/' + id,
    method: 'get'
  })
}

// 新增排期优惠卡信息
export function addSchedulePromoCardInfo(data) {
  return request({
    url: '/cinema/schedulePromoCardInfo',
    method: 'post',
    data: data
  })
}

// 修改排期优惠卡信息
export function updateSchedulePromoCardInfo(data) {
  return request({
    url: '/cinema/schedulePromoCardInfo',
    method: 'put',
    data: data
  })
}

// 删除排期优惠卡信息
export function delSchedulePromoCardInfo(id) {
  return request({
    url: '/cinema/schedulePromoCardInfo/' + id,
    method: 'delete'
  })
}

// 导出排期优惠卡信息
export function exportSchedulePromoCardInfo(query) {
  return request({
    url: '/cinema/schedulePromoCardInfo/export',
    method: 'get',
    params: query
  })
}